import day from 'dayjs';

export const getFullDate = (currentDate: string, itemContent: number | string) => {
  if (typeof itemContent === 'string') {
    return '';
  }
  return day(currentDate).set('date', itemContent).format('YYYY-MM-DD');
};